<template>
    <a-checkbox-group v-model:value="value" style="width:100%" @change="() => emit('update:value', value)">
        <a-row>
            <a-col v-for="item in options" :span>
                <a-checkbox :key="item.value" :value="item.value">{{ item.label }}</a-checkbox>
            </a-col>
        </a-row>
    </a-checkbox-group>
</template>
<script setup lang="ts">
import { ref } from 'vue';

const { options, span = 8 } = defineProps<{ options: any, span?: number }>()

const value = ref([])
const emit = defineEmits(['update:value'])


</script>
<style lang="scss" scoped></style>